package javase2.day03;

import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.Arrays;

public class Demo8 {
	public static void main(String[] args) throws IOException{
		String file = "raf.dat";
		IOUtils.print(file);
		RandomAccessFile raf = new RandomAccessFile(file, "r");
		byte[] buf = new byte[5];
		int count = raf.read(buf);
		System.out.println(count + Arrays.toString(buf));
	}
}
